{extends file="./main.tpl"}
{block name=head}
<style type="text/css" title="currentStyle">
  @import "./media/css/demo_page2.css";
  @import "./media/css/demo_table_jui.css";
  @import "./media/css/jquery-ui-1.8.4.custom.css";
</style>
<script type="text/javascript" language="javascript" src="./media/js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="./media/js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8">
  $(document).ready(function() 
  {
	  oTable = $('#example').dataTable(
	  {
		  "bJQueryUI": true,
		  "sPaginationType": "full_numbers",
		  "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
		  "bPaginate": true,
	    "sScrollX": "400px",
	    "bAutoWidth": true,
	    "bScrollCollapse": true,
	    "bLengthChange": true,
	  });
  });
</script>
<script type="text/javascript" charset="utf-8">
	</script>
{/block}
{block name=body}
<form name="driver" action="{$smarty.server.PHP_SELF}" method="post">
<table align="center" border="2" cellpadding="2" cellspacing="2" width="" >
  <tr>
    <td align="center" class="table1" colspan="2"><b>Account Name</b></td>
  </tr>
  <tr>
    <td class="table2" align="right">Account Name :</td>
    <td class="table2"><input type="text" name="accountName" autofocus required /></td>
  </tr>
  <tr>
    <td class="table1" align="center" colspan="2"><input type="submit" name="insertBtn" value="Submit" class="button" /></td>
  </tr>
</table>
</form>
<br /><br />

<body id="dt_example">
	<div id="container">
  <div class="demo_jui">
	  <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
		  <thead>
			  <tr>
				  <th NOWRAP><b>&nbsp;</b></th>
					<th NOWRAP><b>Account Name</b></th>
				</tr>
			</thead>
			<tbody>
			  {section name="sec" loop=$accountArray}
				  <tr>
				    <td align="center"><a href="accountDelete.php?accountId={$accountArray[sec].accountId}" onclick="return confirm('You Want To Remove This Record');" class="link"><img src="./images/deleteIco.png"></a></td>
				    <td align="center">{$accountArray[sec].accountName}</td>
				  </tr>
					{/section}
			</tbody>
		</table>
	</div>
	<div class="spacer"></div>
	</div>
</body>

{/block}